<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //获取屏幕信息
        console.log(screen.height);//屏幕高度,屏幕高度不变
        //获取浏览器信信息
        console.log(window.outerHeight);//浏览器高度,跟随浏览器窗口改变
        //获取页面信息
        console.log(document.body.clientHeight);//body对象高度 空内容则为0
    </script>
</body>
</html>